package controllers;

import play.mvc.Before;
import play.mvc.Controller;

/**
 * Created by 国彬 on 2016/7/3.
 */
public class Auth extends Controller{

    @Before
    static void checkAuthebnticated(){
        if(!session.contains("user")){
            WebService.wsError("unAuthorized");
        }
    }
}
